{if not empty($left) or not empty($right)}
<div class="context_menu">
    {if not empty($left)}
    <div class="left">
        {include file="backend/_list.tpl" items=$left allow_one=true}
    </div>
    {/if}
    {if not empty($right)}
    <div class="right">
        {include file="backend/_list.tpl" items=$right allow_one=true}
    </div>
    {/if}
</div>
{/if}